package com.object.configuration.utils;

import java.util.ArrayList;
import java.util.List;

public class IdsUtil {

    public static List<Integer> changeId(String lids) {
        List<Integer> list = new ArrayList<>();
        String[] strings = lids.split(",");
        for (int i = 0; i < strings.length; i++) {
            list.add(Integer.valueOf(strings[i].trim()));
        }
        return list;
    }

    public static String toString(String data) {
        data=data.replaceAll(" ","");
        return data.replace("[", "").replace("]", "");
    }
}
